home *** CD-ROM | disk | FTP | other *** search
/ Softwarová Záchrana 3 / Softwarova-zachrana-3.bin / Xteq X-Setup / xqdcXSP-Setup-EN.exe / {app} / plugins / XQ WinNT PriorityControl 1.xpl < prev    next >
Text File  |  2001-05-28  |  2KB  |  78 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 6.0"
  2. "TYPE"="7"
  3. "COUNT"="3"
  4. "UIPATH 1"="System\Advanced Performance Settings"
  5. "NAME"="Windows Foreground App Priority"
  6. "VERSION"="2.10"
  7. "OSVERSION"="01000"
  8. "LANGUAGE"="VBScript"
  9. "WARNING"="1"
  10. "TEXT 1"="Foreground and background applications 50/50 (Default)"
  11. "TEXT 2"="Foreground application more responsive than background" 
  12. "TEXT 3"="Best foreground application response time" 
  13. "DESCRIPTION 1"="This settings controls which Windows priority the foreground (=the app you are working with) should have."
  14. "DESCRIPTION 2"="By default, every program in the system has the same priority so you can write a text in Word while in the background WinZIP is archiving some files."
  15. "DESCRIPTION 3"="If you select anything other than the first option, the foreground program will have nearly all system resources so the programs running in the background will run slower."
  16. "DESCRIPTION 4"="If you work mostly with only one program at a time, setting the second option might be a good idea."
  17. "AUTHOR"="Xteq Systems"
  18. "CONTACTURL"="http://www.xteq.com"
  19. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  20. "COMMENT 1"="Thanks to CptSiskoX for his help!"
  21.  
  22.  
  23. sP="HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\PriorityControl\Win32PrioritySeparation" 'DW
  24.  
  25.  
  26.  
  27. Sub Plugin_Initialize 
  28. '    Call Disable
  29.     i=RegReadValue(sp)
  30.  
  31.     'Call DebugMsg(i)
  32.  
  33.     if IsEmpty(i)=true then 
  34.        Call SetUIElement(1,true)
  35.     else
  36.        Select Case i
  37.               Case 0:  Call SetUIElement(1,true)
  38.               Case 1:  Call SetUIElement(2,true)
  39.               Case 2:  Call SetUIElement(3,true)
  40.        End Select
  41.     end if
  42.  
  43. End Sub
  44.  
  45. Sub Plugin_CheckData(ElementIndex)
  46. End Sub
  47.  
  48. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  49.    'if RegValueExists(sP) then
  50.    '  Call RegDeleteValue(sp)
  51.    'end if
  52.    Dim i
  53.  
  54.    if GetUIElement(1)=true then '0
  55.       i=0
  56.    end if
  57.  
  58.    if GetUIElement(2)=true then '1
  59.       i=1
  60.    end if
  61.  
  62.    if GetUIElement(3)=true then '2
  63.       i=2
  64.    end if
  65.  
  66.  
  67.  
  68.    Call RegWriteValue(sp,i,2)
  69.  
  70.    Call Restart
  71. End Sub
  72.  
  73. Sub Plugin_Terminate 
  74. End Sub
  75.  
  76.  
  77.  
  78.